package Command;

/**
 * @author duanzhizhou
 * @date 2024/11/4
 */
public class client {
    
    public static void main(String[] args) {
        User user = new User();
        Calculator calculator = new Calculator();
        user.compute(new ConcretCommand(calculator, '+', 10));
        user.compute(new ConcretCommand(calculator, '-', 5));
        user.compute(new ConcretCommand(calculator, '*', 3));
        user.compute(new ConcretCommand(calculator, '/', 2));
        user.redo();
        user.undo();
        user.undo();
        user.compute(new ConcretCommand(calculator, '/', 0));
    }
}
